Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config and dev dependency for starting to use phan #758

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

onli
Copy link
Member

@onli onli commented Apr 25, 2021

Phan enables a static code analysis and seems to be highly configurable. The goal is to have it enabled, to:

  1. At first identify additional PHP 8 compatibility issued
  2. Later run on PRs via Githubs CI infrastructure

This PR sets a minimal configuration that should identify some compatibility issues. Run it with:

bundled-libs/bin/phan --processes 3 --progress-bar -o analysis.txt

Please note: Installing phan included updating the PHP version in the composer.json and lead to lots of updates in bundled-libs. If we merge #757 first we can clean that up a bit.

I'm still investigating alternative options myself.

@onli onli marked this pull request as ready for review June 13, 2021 09:45
@onli
Copy link
Member Author

onli commented Jun 2, 2024

@garvinhicking You preferred a different checker than phan, right? Should I go ahead and close here, or should I finish this up to merge it?

@garvinhicking
Copy link
Member

I think phan isn't the community's choice these days, phpstan is quite on top of things. However that one doesnt provide a phar, so we'd need a composer dependency for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants